﻿using ReflectionStudio.Core.Events;
using System;
using System.Data;
using System.Windows;
using System.Windows.Data;
using WPFExcelReport.Helpers;
using System.ComponentModel;
namespace WPFExcelReport
{
    public partial class UIZUTEI : ViewBase
    {
        #region ==dwAB===========
        public static readonly DependencyProperty dwABProperty = DependencyProperty.Register("dwAB",
            typeof(DataRow), typeof(UIZUTEI),
            new FrameworkPropertyMetadata(null, FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OndwABChanged));
        public DataRow dwAB
        {
            get
            {
                return (DataRow)GetValue(dwABProperty);
            }
            set
            {
                SetValue(dwABProperty, value); 
            }
        }
        private static void OndwABChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIZUTEI;
            if (src != null)
            {
                src.dwAB = (DataRow)e.NewValue;
            }
        }
        #endregion
        public VZUTEI TMV
        {
            get
            {
                return (VZUTEI)MV;
            }
        }
       
        public UIZUTEI()
        {
           
         }

  
        public override void Window_Loaded(object sender, RoutedEventArgs e)
        {
            if (DesignerProperties.GetIsInDesignMode(this))
                return;
            base.Window_Loaded(sender, e);
        }
        public override void vwMaster_CurrentChanged(object sender, EventArgs e)
        {
            base.vwMaster_CurrentChanged(sender, e); 
        }
    }
}
